<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="_common/title.jsp" %>
<%
            if(null == session.getAttribute("user")){
                response.sendRedirect("login.jsp");
            }
    %>
<body>
<div class="wrapper">
	<div class="page">
		<%@include  file="_common/header.jsp" %>
                
		<div class="main-container">
			<div class="main">
                                <%@include  file="_common/sliderShow.jsp" %>
                                <%@include  file="_common/col-left.jsp" %>
                                
				<div class="col-main">
			    	<!-- InstanceBeginEditable name="main" -->
						<div class="title-main"><bean:write name="Mail" property="subject"></bean:write></div>
						<div class="content-main">
                                                    <div class="rowManager">
                                                        <label class="lb">To</label>
                                                        <label class="vl"><bean:write name="Mail" property="recipient"></bean:write></label>
                                                    </div>                                                                                                            
                                                    
                                                    <div class="rowManager">
                                                        <label class="lb">Content</label>
                                                        <label class="vl"><bean:write name="Mail" property="content"></bean:write></label>
                                                    </div>
                                                    <div class="rowManager">
                                                        <label class="lb">Attachment</label>
                                                        <%
                                                        if(null == session.getAttribute("pathAttachmentOutBox")){
%>
                                                        <label class="vl"><a href="<bean:write name="Mail" property="attachment"></bean:write>">DownLoad</a></label>
<%
                                                        }
%>                                                        
                                                    </div>
                                                    <div class="rowManager">
                                                        <label class="lb">Date of receipt</label>
                                                        <label class="vl"><bean:write name="Mail" property="date"></bean:write></label>
                                                    </div>                                                                                                        
						</div>
					<!-- InstanceEndEditable -->
				</div>
				<!-- ends col-main -->
			</div>
			<!-- ends main -->
		</div>
		<!-- ends main-container -->
                <%@include file="_common/footer.jsp" %>
	</div>
	<!-- ends page -->
</div>
<!-- ends wrapper -->
</body>
</html>


